﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using hegang_winform.dao;

namespace hegang_winform.dao.impl
{
    class Ftsjgd_live : DataSaveObject
    {
        public void save(DbObject o,ref DbServiceInput input)
        {
            if (input.Gs_tmpBuf[1] != "-1")
            {
                string time = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
                int GS = int.Parse(input.Dic["副井.副提升电控.勾数"]) - int.Parse(input.Gs_tmpBuf[1]);
                int DD = 5 * GS;
                string str = string.Format("INSERT INTO `ftsjgd_live` (`GS`,`DD`,`TimeStamp`) VALUES ( '{0}','{1}','{2}')", GS.ToString(), DD.ToString(), time);
                o.cmdNoReturn(str);
            }
            input.Gs_tmpBuf[1] = input.Dic["副井.副提升电控.勾数"];
        }
    }
}
